@import '~@/theme.less';

@iconWidth: 40px;

.SalaryPaySteps {
    margin-left: auto;
    margin-right: auto;

    .SalaryStep {
        &:last-child .stepTail {
            display: none;
        }

        .stepItem,
        .stepTail {
            display: flex;
        }

        .stepItem .stepText,
        .stepTail .stepTailText {
            flex: 1;
        }

        .stepItem .stepIconWrapper,
        .stepTail .stepTailIconWrapper {
            text-align: right;
            margin-left: 24px;
            margin-right: 12px;
        }

        .stepItem {
            padding-top: 8px;
            padding-bottom: 8px;
            box-sizing: border-box;
            line-height: @iconWidth;
            font-size: 16px;
            font-weight: bold;
            display: flex;

            &:hover,
            &.active {
                background: @table-row-hover-bg;

                .stepIconWrapper .stepIcon {
                    border-color: #FFA22D;
                    color: #FFA22D;
                }

                .stepTextTitle {
                    color: #FFA22D;
                }
            }

            .stepIconWrapper {
                .stepIcon {
                    display: inline-block;
                    width: @iconWidth;
                    height: @iconWidth;
                    border: 1px solid rgba(0, 0, 0, 0.25);
                    border-radius: @iconWidth;
                    text-align: center;
                    font-style: normal;
                }
            }

            .stepText {
                text-align: left;
                &Title {
                    display: inline-block;
                    height: 100%;
                    margin-right: 8px;
                }

                > * + * {
                    margin-left: 8px !important;
                }
            }
        }

        .stepTail {
            height: 40px;

            .stepTailIconWrapper {
                .stepIcon {
                    display: inline-block;
                    width: @iconWidth;
                    height: 100%;
                    position: relative;
                    &:before {
                        position: absolute;
                        left: 50%;
                        width: 1px;
                        height: 100%;
                        content: ' ';
                        display: inline-block;
                        background: rgba(0, 0, 0, 0.05);
                    }
                }
            }
        }
    }

    .SalaryStep.SalaryStepEdit,
    .SalaryStep.SalaryStepEnable{
        .stepItem {
            .stepIconWrapper .stepIcon {
                color: #ff7979;
                background: #fef5f5;
                border: none;
            }
            .stepText {
                color: #ff7979;
            }
        }
    }

    .SalaryStep.SalaryStepDelete {
        .stepItem {
            .stepIconWrapper .stepIcon {
                color: #ff7979;
                background: #fef5f5;
                border: none;
            }
            .stepText .stepTextTitle {
                color: #BFBFBF;
                text-decoration:line-through;
            }
        }
    }

    .SalaryStep.SalaryCompareStepEdit,
    .SalaryStep.SalaryCompareStepEnable,
    .SalaryStep.SalaryCompareStepDelete {
        .stepItem .stepIconWrapper .stepIcon {
            color: #ff7979;
            background: #fef5f5;
            border: none;
        }
        .stepText .stepTextTitle{
            color: #ff7979;
        }
    }

    :global {
        .ant-tag {
            border: none;
        }
    }
}

.dropdownBox {
    border-right: none;
    max-width: calc(50vw - 400px);
    .dropdownItem {
        font-size: 14px;
        line-height: 22px;
        height: auto !important;
        padding-left: 0;
        margin-bottom: 0 !important;
        white-space: break-spaces;
        .dropdownValue.modified {
            color: red;
        }
    }
}
